<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header"}
	    <link rel="stylesheet" href="__public__/admin/vendor/kindeditor/themes/default/default.css" />
	    <link rel="stylesheet" href="__public__/admin/vendor/kindeditor/plugins/code/prettify.css" />
	    <script charset="utf-8" src="__public__/admin/vendor/kindeditor/kindeditor-all.js"></script>
	    <script charset="utf-8" src="__public__/admin/vendor/kindeditor/lang/zh-CN.js"></script>
	    <script charset="utf-8" src="__public__/admin/vendor/kindeditor/plugins/code/prettify.js"></script>
    </head>
    <body>
        <div class="wrapper">
            {include file="public/nav"}  
            <div id="page-wrapper" style="min-height: 325px;">
                <div class="row">
	                <div class="col-lg-12">
	                    <h1 class="page-header">编辑文章</h1>
	                </div>
	                <!-- /.col-lg-12 -->
                </div>
                <!-- /.row -->

                <div class="row">
		            <textarea name="content1" style="width:700px;height:200px;visibility:hidden;"></textarea>

                </div>
            </div>
            {include file="public/footer"}
	        <script>
		     KindEditor.ready(function(K) {
			     var editor1 = K.create('textarea[name="content1"]', {
				     cssPath : '../plugins/code/prettify.css',
				     uploadJson : '../php/upload_json.php',
				     fileManagerJson : '../php/file_manager_json.php',
				     allowFileManager : true,
				     afterCreate : function() {
					     var self = this;
					     K.ctrl(document, 13, function() {
						     self.sync();
						     K('form[name=example]')[0].submit();
					     });
					     K.ctrl(self.edit.doc, 13, function() {
						     self.sync();
						     K('form[name=example]')[0].submit();
					     });
				     }
			     });
			     prettyPrint();
		     });
	        </script>            
    </body>
</html>
